import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: ()=>import("@/views/admin/login.vue"),
    },
    {
      path: '/enroll',
      name: 'Enroll',
      component: ()=>import("@/views/admin/enroll.vue"),
    },
    {
      path: '/forget',
      name: 'Forget',
      component: ()=>import("@/views/admin/forget.vue"),
    },
    {
      path: '/AdminHome',
      name: 'AdminHome',
      component: ()=> import("@/views/admin/index.vue"),
    },
    {
      path: '/404',
      name:"404",
      component:()=> import ('@/views/404.vue')
    },
    {
      path:'/',
      redirect: '/login'
    }
  ]
})

export default router
